package com.jz.digital.base;

/**
 * Copyright (c) 2019 深圳市爱都科技有限公司. All rights reserved.
 *
 * @Author: xyb
 * @CreateDate: 2019-12-11 15:43
 * @description 生命周期帮助类
 */
public class LifecycleHelper {
    private static final boolean ENABLE = false;

    private final String TAG;

    private boolean isInteractive; // 是否可交互

    public LifecycleHelper(String tag){
        this.TAG = tag;
    }

    /**
     * 设置可交互状态
     * @param interactive
     */
    protected void setInteractive(boolean interactive){
        this.isInteractive = interactive;
    }

    /**
     * 是否可交互
     * @return
     */
    protected boolean isInteractive(){
        return isInteractive;
    }
}
